﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cheems.Interface.AI
{
    /// <summary>
    /// AI服务
    /// </summary>
    public interface IChat
    {
        /// <summary>
        /// 请求AI
        /// </summary>
        /// <param name="question"></param>
        /// <returns></returns>
        IAsyncEnumerable<string> GetChatGptResponse(string question);

        /// <summary>
        /// 整理AI返回文本
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        string CleanText(string input);
    }
}
